package com.tom.myapt;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.apt_api.ButterKnife;
import com.apt_api.Unbinder;
import apt.annotation.BindView;


// 生成代码的路径：app/build/generated/ap_generated_sources/debug/out/com.tom.myapt/***Activity_ViewBinding
public class MainActivity extends AppCompatActivity {

    @BindView(R.id.tv1)
    TextView textView1;
    @BindView(R.id.tv2)
    TextView textView2;
    Unbinder mUnbinder;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        mUnbinder = ButterKnife.bind(this);

        textView1.setText("butterKnife1 1213");
        textView2.setText("textView2");
    }

    @Override
    protected void onDestroy() {
        mUnbinder.unbind(); // 防止内存泄漏
        super.onDestroy();
    }
}